package com.hanthink.system.domain.pc;

import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hanthink.common.annotation.Excel;

/**
 * 任务管理对象 EM_TASK
 * 
 * @author hanthink
 * @date 2021-01-22
 */
public class EmTask {
	private static final long serialVersionUID = 1L;

	/** 事业部 */
	@Excel(name = "事业部")
	private String hangameKey;

	/** 工厂 */
	@Excel(name = "工厂")
	private String siteKey;
	
	/** 任务数量 */
	private Long taskNum;

	/** 任务编码 */
	@Excel(name = "任务编码")
	private String taskCode;

	/** 工单号 */
	@Excel(name = "工单号")
	private String orderNumber;

	/** 设备 */
	@Excel(name = "设备")
	private String eqKey;

	/** 任务类型（0-日，1-周，2-月，3-工艺点检） */
	@Excel(name = "任务类型", dictType = "plan_type")
	private String taskType;

	/** 任务类别 */
	private String taskCategory;

	/** 任务设备状态 */
	@Excel(name = "任务设备状态", dictType = "equipment_status")
	private String eqStatus;

	/** 状态 */
	@Excel(name = "状态", dictType = "task_status")
	private String status;

	/** 生成时间 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@Excel(name = "生成时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
	private Date createTime;

	/** 执行人 */
	@Excel(name = "执行人")
	private String executer;

	/** 开始执行时间 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@Excel(name = "开始执行时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
	private Date startTime;

	/** 结束执行时间 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@Excel(name = "结束执行时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
	private Date endTime;

	/** 工时 */
	private Long workTime;

	/** 部门 */
	@Excel(name = "部门")
	private String department;

	/** 计划id */
	private Long planId;

	private Long id;

	/** 进度 */
	private String progress;

	private String equipCode;

	public String getBatchno() {
		return batchno;
	}

	public void setBatchno(String batchno) {
		this.batchno = batchno;
	}

	private String batchno;



	//日志字段

	//修改人
	private String modifiedBy;

	//修改时间
	private Date modificationTime;

	public String getEquipCode() {
		return equipCode;
	}

	public void setEquipCode(String equipCode) {
		this.equipCode = equipCode;
	}

	public String getOrderNumber() {
		return orderNumber;
	}
	

	public Long getTaskNum() {
		return taskNum;
	}

	public void setTaskNum(Long taskNum) {
		this.taskNum = taskNum;
	}

	public void setOrderNumber(String orderNumber) {
		this.orderNumber = orderNumber;
	}

	public void setSiteKey(String siteKey) {
		this.siteKey = siteKey;
	}

	public String getSiteKey() {
		return siteKey;
	}

	public void setTaskCode(String taskCode) {
		this.taskCode = taskCode;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return id;
	}

	public String getTaskCode() {
		return taskCode;
	}

	public void setEqKey(String eqKey) {
		this.eqKey = eqKey;
	}

	public String getEqKey() {
		return eqKey;
	}

	public void setTaskType(String taskType) {
		this.taskType = taskType;
	}

	public String getTaskType() {
		return taskType;
	}

	public void setTaskCategory(String taskCategory) {
		this.taskCategory = taskCategory;
	}

	public String getTaskCategory() {
		return taskCategory;
	}

	public void setEqStatus(String eqStatus) {
		this.eqStatus = eqStatus;
	}

	public String getEqStatus() {
		return eqStatus;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getStatus() {
		return status;
	}

	public void setExecuter(String executer) {
		this.executer = executer;
	}

	public String getExecuter() {
		return executer;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setWorkTime(Long workTime) {
		this.workTime = workTime;
	}

	public Long getWorkTime() {
		return workTime;
	}

	public void setDepartment(String department) {
		this.department = department;
	}

	public String getDepartment() {
		return department;
	}

	public void setPlanId(Long planId) {
		this.planId = planId;
	}

	public Long getPlanId() {
		return planId;
	}

	public void setProgress(String progress) {
		this.progress = progress;
	}

	public String getProgress() {
		return progress;
	}

	public String getHangameKey() {
		return hangameKey;
	}

	public void setHangameKey(String hangameKey) {
		this.hangameKey = hangameKey;
	}

	public String getModifiedBy() {
		return modifiedBy;
	}

	public void setModifiedBy(String modifiedBy) {
		this.modifiedBy = modifiedBy;
	}

	public Date getModificationTime() {
		return modificationTime;
	}

	public void setModificationTime(Date modificationTime) {
		this.modificationTime = modificationTime;
	}

	@Override
	public String toString() {
		return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("hangameKey", getHangameKey())
				.append("siteKey", getSiteKey()).append("taskCode", getTaskCode()).append("eqKey", getEqKey())
				.append("taskType", getTaskType()).append("taskCategory", getTaskCategory())
				.append("eqStatus", getEqStatus()).append("status", getStatus()).append("createTime", getCreateTime())
				.append("executer", getExecuter()).append("startTime", getStartTime()).append("endTime", getEndTime())
				.append("workTime", getWorkTime()).append("department", getDepartment()).append("planId", getPlanId())
				.append("progress", getProgress()).toString();
	}
}
